<?php

class Conexao{
	
	/* web 
	private static $host = "localhost";
	private static $user = "pontuali_agence";
	private static $pwd  = "Q!X5^aV#~!f5";
	private static $bd   = "pontuali_agence";
	private static $con  = "";
	 web */
	
	/* web 
	private static $host = "localhost";
	private static $user = "grupopia_agence";
	private static $pwd  = "nF3X?D+&y&l2";
	private static $bd   = "grupopia_agence";
	private static $con  = "";
	 web */
	
	/* local */
	private static $host = "localhost";
	private static $user = "root";
	private static $pwd  = "";
	private static $bd   = "agence";
	private static $con  = "";
	/* local */
	
	public static function conectar(){
		
		self::$con = mysql_connect(self::$host, self::$user, self::$pwd);
		             mysql_select_db(self::$bd, self::$con);
		
		return self::$con;			 
	}
	
	public static function desconectar(){
		
		mysql_close(self::$con);
	}
}
	
?>